package com.google.ads;

import android.app.Activity;
import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;
import android.webkit.WebView;
import com.google.ads.util.d;
import java.lang.ref.WeakReference;

class s
  implements Runnable
{
  private final WeakReference a;
  private final WebView b;
  private final String c;

  public s(Activity paramActivity, WebView paramWebView, String paramString)
  {
    this.a = new WeakReference(paramActivity);
    this.c = paramString;
    this.b = paramWebView;
  }

  public void run()
  {
    while (true)
    {
      try
      {
        Uri localUri = Uri.withAppendedPath(p.a, this.c);
        Activity localActivity = (Activity)this.a.get();
        if (localActivity == null)
        {
          d.a("Activity was null while getting the +1 button state.");
          return;
        }
        Cursor localCursor = localActivity.getContentResolver().query(localUri, p.c, null, null, null);
        if ((localCursor == null) || (!localCursor.moveToFirst()))
          break label122;
        if (localCursor.getInt(localCursor.getColumnIndex("has_plus1")) == 1)
        {
          bool = true;
          this.b.post(new t(this.b, bool));
          return;
        }
      }
      catch (Throwable localThrowable)
      {
        d.b("An unknown error occurred while updating the +1 state.", localThrowable);
        return;
      }
      boolean bool = false;
      continue;
      label122: d.a("Google+ app not installed, showing ad as not +1'd");
      bool = false;
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.google.ads.s
 * JD-Core Version:    0.6.2
 */